import numpy as np
import pandas as pd
import aux_visualisation 

'''
In this file we show a simple summary statistics of the behavioural dataset
as well as the visualisation of the Sankey Diagram. 
The dataset only covers initiatives that refer directly to GHG emission reduction
The variable "is_paper_sector" takes the value of 1 for companies included in the main analysis
'''

VZ = aux_visualisation.Visual()
#%% Load the dataset
BD = pd.read_csv('local_data/behavioural_dataset.csv')

#%% Show the Sankey diagram of the full sample
VZ.make_sankey(BD)
#%% Show total number of reports and initiatives in the full sample
VZ.NReports(BD)

#%% Show the Sankey diagram of the companies in the sectors analysed in the paper
VZ.make_sankey(BD[BD.is_paper_sector == 1])
#%% Show total number of reports and initiatives in the sectors analysed in the paper
VZ.NReports(BD[BD.is_paper_sector == 1])


